#ifndef LOCK_HEADER_
#define LOCK_HEADER_

#include <windows.h>

class Lock
{
public:
	Lock()
	{
		InitializeCriticalSection(&section);
		EnterCriticalSection(&section);
	}
	~Lock()
	{
		LeaveCriticalSection(&section);
	}
private:
	CRITICAL_SECTION section;
};

#endif